body  { 
  background-color:#000000;
}

#field {
  width:1032px;
  height:700px;
  margin:0px;
  overflow: hidden;
}

#game {
  background-image: url("img/bg.png ");
  background-repeat: no-repeat;
  position: fixed;
  margin-left: auto;
  margin-right: auto;
  top: 50%;
  left: 50%;
  /*what's inside it divided by two*/
  margin-top: -330px;
  margin-left: -528px;
}

/*popups*/
#popupBackground{
  opacity: 0.7; /* how much you can see "through" */
  display: none;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0px;
  left: 0px;
  background: #000;
  z-index:1;
}

.popup p {
  text-align:left;
}

.popup img {
  display:block;
  margin: 0 auto;
  max-height: 200px;
}

.popup{
  display:none;
  position:fixed;
  max-height:60%;
  max-width:35%;
  background:#FFFFFF;
  border:2px solid #cecece;
  z-index:2;
  padding:1em;
  font-size: 0.8em;
  font-family:Tahoma;
  text-align: center;
}

#popupCloserX {
  top: 5px;
  right: 10px;
  color: #000;
  position: absolute;
  font-weight: bold;
  text-decoration: none;
}
/* positioning */


#firstTableDiv {
  position: absolute; 
  left:165px;
  top:115px; 
}

#secondTableDiv {
  position: absolute; 
  top:115px; 
  left:535px;
}

.tabel {
  width: 304px;
  height: 320px;
  margin: 0px;
  border: 0px;
  filter: chroma( color=#ff00ff );  
//  background-image: url("img/tabel.png");
  background-size:100%;
}

/* game */
#manguvaljad table {
  position:relative;
  left:50px;
  top:62px;
  border-collapse: collapse;
}

#manguvaljad tr {
  height: 30px;
}

#manguvaljad td {
  width: 30px; 
  height: 30px; 
  border: 1px solid #000;
  background-repeat: no-repeat;
  background-position: center; 
  background-size: 100%;
}

/* buttons */
#juhisedButton {
  position: absolute;
  left: 200px;
  top: 4px;
}

#alustaButton {
  position: absolute;
  left:755px;
  top: 4px;
}

#lopetaButton {
	position: absolute;
	left: 622;
	top: 27;
}

.GameButton {
  -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
  -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
  box-shadow:inset 0px 1px 0px 0px #ffffff;
  background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
  background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
  background-color:#ededed;
  -moz-border-radius:6px;
  -webkit-border-radius:6px;
  border-radius:6px;
  border:1px solid #dcdcdc;
  display:inline-block;
  color:#777777;
  font-family:arial;
  font-size:12px;
  font-weight:bold;
  padding:1px 30px;
  text-decoration:none;
  text-shadow:1px 1px 0px #ffffff;
}.GameButton:hover {
  background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
  background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
  background-color:#dfdfdf;
}.GameButton:active {
  position:relative;
  top:1px;
}

